<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   
      <title>Formatting Object Table Reference</title>
      <link rel="stylesheet" href="../reference.css" type="text/css">
      <meta name="generator" content="DocBook XSL Stylesheets V1.37">
   </head>
   <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
      <div class="reference">
         <div class="titlepage">
            <div>
               <h1 class="title"><a name="d41e1"></a>Formatting Object Table Reference
               </h1>
            </div>
            <div>
               <h3 class="author">Norman Walsh</h3>
            </div>
            <div>
               <p class="releaseinfo">
                  $Id$
                  
               </p>
            </div>
            <div>
               <p class="copyright"><a href="../copyright.html">Copyright</a> &copy; 1999, 2000 by Norman Walsh. <a href="../warranty.html">No Warranty</a>.
               </p>
            </div>
            <hr>
         </div>
         <div class="partintro">
            <div></div>
            <div class="section"><a name="d41e24"></a><div class="titlepage">
                  <div>
                     <h2 class="title" style="clear: all"><a name="d41e24"></a>Introduction
                     </h2>
                  </div>
               </div>
               <p>This is technical reference documentation for the DocBook XSL
                  Stylesheets; it documents (some of) the parameters, templates, and
                  other elements of the stylesheets.
               </p>
               <p>This is not intended to be &#8220;user&#8221; documentation.
                  It is provided for developers writing customization layers for the
                  stylesheets, and for anyone who's interested in &#8220;how it
                  works&#8221;.
               </p>
               <p>Although I am trying to be thorough, this documentation is known
                  to be incomplete. Don't forget to read the source, too :-)
               </p>
            </div>
            <div class="toc">
               <p><b>Table of Contents</b></p>
               <dl>
                  <dt><a href="#template.calc.column.width">calc.column.width</a></dt>
               </dl>
            </div>
         </div>
         <hr>
         <div class="refentry">
            <h1 class="title"><a name="template.calc.column.width"></a>calc.column.width
            </h1>
            <div class="refnamediv"><a name="d41e40"></a><h2>Name</h2>calc.column.width &#8212; Calculate an XSL FO table column width specification from a
               CALS table column width specification.
            </div>
            <div class="refsynopsisdiv"><a name="d41e45"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="calc.column.width"&gt;
&lt;xsl:param name="colwidth"&gt;1*&lt;/xsl:param&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
            <div class="refdescription"><a name="d41e48"></a>
               
               
               <p>CALS expresses table column widths in the following basic
                  forms:
               </p>
               
               
               
               
               <div class="itemizedlist">
                  <ul>
                     <li>
                        <p><a name="d41e54"></a><i>99.99units</i>, a fixed length specifier.
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e59"></a><i>99.99</i>, a fixed length specifier without any units.
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e64"></a><i>99.99*</i>, a relative length specifier.
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e69"></a><i>99.99*+99.99units</i>, a combination of both.
                        </p>
                     </li>
                  </ul>
               </div>
               
               
               
               
               <p>The CALS units are points (pt), picas (pi), centimeters (cm),
                  millimeters (mm), and inches (in). These are the same units as XSL,
                  except that XSL abbreviates picas "pc" instead of "pi". If a length
                  specifier has no units, the CALS default unit (pt) is assumed.
               </p>
               
               
               
               
               <p>Relative length specifiers are represented in XSL with the
                  proportional-column-width() function.
               </p>
               
               
               
               
               <p>Here are some examples:</p>
               
               
               
               
               <div class="itemizedlist">
                  <ul>
                     <li>
                        <p><a name="d41e85"></a>"36pt" becomes "36pt"
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e88"></a>"3pi" becomes "3pc"
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e91"></a>"36" becomes "36pt"
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e94"></a>"3*" becomes "proportional-column-width(3)"
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e97"></a>"3*+2pi" becomes "proportional-column-width(3)+2pc"
                        </p>
                     </li>
                     <li>
                        <p><a name="d41e100"></a>"1*+2" becomes "proportional-column-width(1)+2pt"
                        </p>
                     </li>
                  </ul>
               </div>
               
               
            </div>
            <div class="refparameter"><b><a name="d41e104"></a>Parameters</b>
               
               
               <div class="variablelist">
                  <dl>
                     <dt><a name="d41e107"></a><span class="term">colwidth</span></dt>
                     <dd>
                        <p><a name="d41e110"></a>The CALS column width specification.
                        </p>
                     </dd>
                  </dl>
               </div>
               
               
            </div>
            <div class="refreturn"><b><a name="d41e114"></a>Returns</b>
               
               
               <p>The XSL column width specification.</p>
               
               
            </div>
         </div>
      </div>
   </body>
</html>